<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <script src="html5plus://ready"></script>
  <!-- <script src="./src/utils/update.js"></script> -->
  <!-- 如果有使用mui,就不要注释下面的标签  -->

  <title>区块链App</title>
</head>

<body>
  <div id="app"></div>
  <script>
    plus.key.addEventListener(
      "backbutton",
      function () {
        var ws = plus.webview.currentWebview();
        var index = plus.webview.getLaunchWebview();
        if (ws == index) {
          plus.nativeUI.confirm('退出程序会导致挖矿中断！！！', function (e) {
            if (e.index === 0) {
              plus.webview.close(ws)
            }
          })
        } else if (ws.webviewPreload == true) {
          plus.webview.hide(ws, 'auto');
        } else {
          plus.webview.close(ws);
        }
      },
      false);

    //  仅支持竖屏显示
    plus.screen.lockOrientation("portrait-primary");

  </script>
</body>

</html>
